package com.zr.daoimpl;

import java.util.ArrayList;
import java.util.List;

import org.hibernate.Query;
import org.springframework.stereotype.Repository;

import com.zr.dao.ShowStationUserDao;
import com.zr.model.Crole;
import com.zr.model.Cuser;

@Repository("showStationUserDao")
public class ShowStationUserDaoimpl<T> extends BaseDaoImpl<T> implements ShowStationUserDao<T>{

	@Override
	public List<Cuser> getAllUserByRid(int rid) {
		List<Cuser> rs = new ArrayList<Cuser>();
		String hql = "from Cuser where rid not in (:rid)";
		Query que = this.getCurrentSession().createQuery(hql);
		que.setInteger("rid", rid);
		rs=que.list();
		return rs;
	}

	
	
}
